package com.ershi.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ershi.mapper.AddressMapper;
import com.ershi.model.AddressDO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 地址业务层
 *
 * @author yinhuidong3@xiaomi.com
 * @since 2021/7/19
 */
@Service
public class AddressService {

    @Resource
    private AddressMapper addressMapper;

    public AddressDO detail(Long id){
        AddressDO addressDO = addressMapper.selectOne(new QueryWrapper<AddressDO>().eq("id", id));
        return addressDO;
    }
}
